package cn.com.nes.mybatis.agent.ope.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author nes
 * @since 2023-06-19
 */
@TableName("fault_data_item_relation")
public class FaultDataItemRelation extends Model<FaultDataItemRelation> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("fault_data_item_id")
    private String faultDataItemId;
    @TableField("related_data_item_id")
    private String relatedDataItemId;

    @TableField("protocol_id")
    private String protocolId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFaultDataItemId() {
        return faultDataItemId;
    }

    public void setFaultDataItemId(String faultDataItemId) {
        this.faultDataItemId = faultDataItemId;
    }

    public String getRelatedDataItemId() {
        return relatedDataItemId;
    }

    public void setRelatedDataItemId(String relatedDataItemId) {
        this.relatedDataItemId = relatedDataItemId;
    }

    public static final String ID = "id";

    public static final String FAULT_DATA_ITEM_ID = "fault_data_item_id";

    public static final String RELATED_DATA_ITEM_ID = "related_data_item_id";

    public static final String PROTOCOL_ID = "protocol_id";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "FaultDataItemRelation{" +
                ", id=" + id +
                ", faultDataItemId=" + faultDataItemId +
                ", relatedDataItemId=" + relatedDataItemId +
                ", protocolId=" + protocolId +
                "}";
    }

    public String getProtocolId() {
        return protocolId;
    }

    public void setProtocolId(String protocolId) {
        this.protocolId = protocolId;
    }
}
